------------------------------------------------------------------------ NED Image OCX Copyright (c) 1995-1996 Northeast Data Corp. All Rights Reserved ------------------------------------------------------------------------ Demo Release 1.0 for 32-bit VB 4.0 users December 1995 This document describes the NED Image OCX Control. CONTENTS 1. Product Description 2. Legal Information 3. Installation 4. Usage 5. Ordering information 6. Release notes ------------------------------------------------------------------------ 1. Product Description The NED Image OCX Control is a 32-bit Microsoft Windows OLE custom control that displays and prints various types of image files. It works with TIFF, BMP, DIB, GIF, JPEG and Kodak Photo CD files. It can be used with any host programming environment or application that supports 32-bit OCX controls. ------------------------------------------------------------------------ 2. Legal Information The purchaser of the NED Image OCX Control is allowed to use it and distribute it in applications without paying any royalty, and without printing or displaying a copyright notice for the control. This only includes distribution of the NEDIMAGE.OCX control and supporting files. It does not include distribution of documentation that comes with the NED Image OCX Control. The purchaser of the NED Image OCX Control may distribute the control with applications that are networked (multiple users accessing the control from a file server) without paying any license fees to Northeast Data Corp. Portions of this software are based on the work of the Independent JPEG Group. Portions of this software Copyright (c) 1988-1995 Sam Leffler Copyright (c) 1991-1995 Silicon Graphics, Inc. ------------------------------------------------------------------------ 3. Installation Note: OCX controls REQUIRE OLE V2.02 or higher. Lower versions will cause the control registration to fail. Create a temp directory on your hard disk and copy all files from the distribution disk to the directory. These files include: README.TXT (This file) MFC40.DLL (Required for OCX) * MSVCRT40.DLL (Required for OCX) * OLEPRO32.DLL (Required for OCX) * PCDLIB32.DLL (Required for OCX) NEDIMAGE.OCX (NED Image OCX) NEDIMAGE.TLB (NED Image OCX Type Library) FORM1.FRM (VB 4.0 form definition file) FORM1.FRX (VB 4.0 form definition file) PROJECT1.VBP (VB 4.0 Project file) (*) Denotes common file for most OCX controls If you have downloaded the NIMGVB10.ZIP file, use PKUNZIP to extract the files into the temp directory. A 32-bit Microsoft Visual Basic 4.0 example application is provided with the NED Image OCX control. You must have the 32-bit version of Microsoft Visual Basic 4.0 installed on your machine to run this demo. The example application allows you to + open image files + change the color reduction method + display the image file on the screen + rotate the image file + change the fit type + print the image to a printer The demo application is not crippled in any way. The dialog specifying that this is an unregistered version of the control does not appear in the release version. To run the sample application you must first register the NED Image Control in the registry database. + Start the 32-bit version of Visual Basic 4.0. + Select the Tools/Custom Controls menu item. + Press the Browse button. + Locate the NEDIMAGE.OCX file on your hard drive. + Press OK. This will register the OCX control. + Press the OK button to dismiss the Custom Controls dialog. This sample application includes a sample project called Project1. Load this project into VB and run the demo. ------------------------------------------------------------------------ 4. Usage PROPERTIES ---------- Picture - The full file specification of the file containing the image to display. FitType - 0 = Best Fit 1 = Horizontal Fit 2 = Vertical Fit 3 = One to One AutoDisplay - True - Displays image as soon as it is loaded False - Does not display image until Refresh is called VScrollPos - Value of the Vertical Scroll position HScrollPos - Value of the Horizontal Scroll position ScrollBars - True - Show scroll bars if needed. False - Hide scroll bars. ColorReductionMethod - Returns the type of Color reduction method used. This is a read-only property. 1 = OrderedDither 2 = ErrorDiffusionDither 3 = MedianCutQuant TotalRotate - Returns the total amount the image has rotated. This is a read-only property. 90 - Image has been rotated 90 from original 180 - Image has been rotated 180 from original 270 - Image has been rotated 180 from original NumScreenColors - Returns the number of colors the display is capable of. This is a read-only property. NumPrinterColors - Returns the number of colors the default printer is capable of. This is a read-only property. NumImageColors - Returns the number of colors in the original image. This is a read-only property. ImageHeight - Returns the original image height. This is a read-only property. ImageWidth - Returns the original image width. This is a read-only property. METHODS ------- Rotate90 - Rotates the image 90 degrees from its current location. Rotate180 - Rotates the image 180 degrees from its current location. Rotate270 - Rotates the image 270 degrees from its current location. OrderedDither - Performs an ordered dither on the True Color image. ErrorDiffusionDither - Performs an error diffusion dither on the True Color image. MedianCutQuant - Performs a median cut color reduction method on the True Color Image. GetLastError - Returns the Last Error that the NED Image OCX encountered. PrintImage - Prints the image with the given fit type to the printer. Refresh - Refreshes/Redraws the image. AboutBox - Displays the about box for the NED Image OCX. ------------------------------------------------------------------------ Northeast Data Corp. 2117 Buffalo Rd., Suite 290 Rochester, NY 14624 ------------------------------------------------------------------------ 5. Ordering Information The easiest way to obtain a registered version is to type GO SWREG on Compuserve. The ID for the NED Image OCX is 8884. The ID for the source code version of the control is 8885. After you provide the information, Compuserve will send us a mail message. We will send you the software. Compuserve will bill you and then pay us. To obtain the software directly from us, send a money order or a check drawn on a U.S bank to the address above. Specify "NED Image OCX" and provide your full address. If you provide a Compuserve ID, we can send the software via e-mail. The price of the NED Image OCX control is $199.00. The price of the NED Image OCX source code is $1199.00. Shipping and handling fees in the US are $15.00. Shipping and handling fees outside the US are $20.00. New York State residents must add 8% sales tax. ------------------------------------------------------------------------ 6. Release notes Version 1.0 - December 1995 + First commercial release. + There are bugs in some of the printer drivers that are distributed with Windows 95 and Windows NT. Specifically, using an Epson Stylus Color printer with the printer driver distributed with Windows NT only allows for printing with 16 colors. Printing with the Epson Stylus Color printer with the printer driver distributed with Window 95 does not print at all. To print with the Epson Stylus Color printer under Windows, your users should use the Windows 3.11 driver available from Epson. The 1.06 or 2.03 driver included with the printer works fine and prints in True Color. If you have a doubt about the NED Image OCX print quality, first check to see if any updated drivers are available from the printer manufacturer. If you are still having problems with color printing, please make sure you have configured your printer driver for color.